home *** CD-ROM | disk | FTP | other *** search
/ Venus 7000 / darktronics.iso / Software / Service Packs / WinXPSP1.exe / icsmgr.js_ / icsmgr.js
Encoding:
Text File  |  2002-08-28  |  16.8 KB  |  730 lines

  1.  
  2.  
  3. var ICS_CONN_STARTING = 1;
  4. var ICS_CONN_CONNECTING = 2;
  5. var ICS_CONN_CONNECTED = 3;
  6. var ICS_CONN_DISCONNECTING = 4;
  7. var ICS_CONN_DISCONNECTED = 5;
  8. var ICS_CONN_STOPPED = 6;
  9. var ICS_CONN_PERMANENT = 7;
  10. var ICS_CONN_UNK_DIAL_STATE = 8;
  11. var ICS_CONN_CALLWAITING = 9;
  12. var ICS_CONN_HN_UNAVAILABLE = 1000;
  13. var ICS_CONN_TIMEOUT = 5000;
  14.  
  15. var oldState = ICS_CONN_DISCONNECTED;
  16. var currentState = ICS_CONN_DISCONNECTED;
  17.  
  18.  
  19. var ICS_CONN_TYPE_REG = 0;
  20. var ICS_CONN_TYPE_ISP = 1;
  21. var ICS_CONN_TYPE_REF = 2;
  22. var ICS_CONN_TYPE_MIG = 3;
  23.  
  24. var ICS_Error_Id = 0;
  25. var ICS_ERR_HN_UNAVAILABLE = ICS_Error_Id++;
  26. var ICS_ERR_MODEM_DISCONNECTED = ICS_Error_Id++;
  27. var ICS_ERR_MODEM_FAILED_CONNECT = ICS_Error_Id++;
  28. var ICS_ERR_STOPPED = ICS_Error_Id++;
  29. var ICS_ERR_PERM_DISCONNECTED = ICS_Error_Id++;
  30. var ICS_ERR_TIMEOUT = ICS_Error_Id++;
  31. var LAN_ERR_HW_UNAVAILABLE1 = ICS_Error_Id++;
  32. var LAN_ERR_HW_UNAVAILABLE2 = ICS_Error_Id++;
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41. var CONNECTIONTYPE_INVALID            = 0x00000000;
  42.  
  43.  
  44.  
  45. var CONNECTIONTYPE_NONE               = 0x00000001;
  46.  
  47.  
  48.  
  49. var CONNECTIONTYPE_MODEM              = 0x00000002;
  50.  
  51.  
  52.  
  53. var CONNECTIONTYPE_LAN_ICS            = 0x00000004;
  54.  
  55.  
  56.  
  57. var CONNECTIONTYPE_LAN_BROADBAND      = 0x00000008;
  58.  
  59.  
  60.  
  61.  
  62. var CONNECTIONTYPE_LAN_INDETERMINATE  = 0x00000010;
  63.  
  64.  
  65.  
  66. var CONNECTIONTYPE_OTHER              = 0x00000020;
  67.  
  68.  
  69. var CONNECTIONTYPE_LAN                = (CONNECTIONTYPE_LAN_ICS |
  70.                                          CONNECTIONTYPE_LAN_BROADBAND |
  71.                                          CONNECTIONTYPE_LAN_INDETERMINATE);
  72.  
  73.  
  74.  
  75. var INTERNET_UNKNOWN = -1;
  76. var INTERNET_NO      = 0;
  77. var INTERNET_YES     = 1;
  78.  
  79.  
  80.  
  81.  
  82.  
  83. var CONFIG_LAN_UNKNOWN = -1;
  84. var CONFIG_LAN_NO      = 0;
  85. var CONFIG_LAN_YES     = 1;
  86.  
  87. var g_ConnectionCapabilities      = CONNECTIONTYPE_INVALID;
  88. var g_PreferredConnection         = null;  
  89. var g_Internet                    = INTERNET_UNKNOWN;
  90. var g_ModemTypes                  = null;
  91. var g_CanConfigLan                = CONFIG_LAN_UNKNOWN;
  92. var g_PublicLanCount              = 0;
  93.  
  94. var L_ERR_HN_UNAVAILABLE_Text = "Your computer is no longer connected to the Internet through your network. <br><br>To restore the connection, make sure that the network cable is securely plugged into your computer as well as the network.";
  95.  
  96.  
  97. var L_ERRSTOPPED_Text = "Internet Connection Sharing is presently not available on your network. Click <b>Retry</b> to try connecting again.";
  98. var L_ERR_PERM_DISCONNECTED_Text = "Internet Connection Sharing has been disconnected. If you're using a high-speed adapter to connect to the Internet (e.g. Broadband), please ensure that the adapter has been correctly configured and that the cables are securely attached.<br><br>Click <b>Retry</b> to try connecting again.";
  99. var L_ERRTIMEOUT_Text = "There is a problem connecting to the Internet. Either your connection has timed out or this computer is not configured correctly to use the Shared Internet Connection. <br><br>Click <b>Retry</b> to try connecting again.";
  100. var L_ERR_LAN_UNAVAILABLE1_Text = "Your computer is not connected to the Internet through your network. <br><br>Please check your network settings and confirm that you are able to connect to the Internet, then try again.";
  101. var L_ERR_LAN_UNAVAILABLE2_Text = "Your computer is not connected to the Internet through your network. <br><br>Please select one of the following methods:";
  102.  
  103. <!--REQUIRED FUNCTION NAME-->
  104. function OnIcsConnectionStatus(iStatus)
  105. {
  106.     oldState = currentState;
  107.     currentState = iStatus;
  108.  
  109.     switch (g_CurrentCKPT)
  110.     {
  111.     case CKPT_REGISTER1:
  112.     case CKPT_REGISTER3:
  113.     case CKPT_ISPSIGNUP:
  114.     case CKPT_REFDIAL:
  115.     case CKPT_MIGDIAL:
  116.         break;
  117.     default:
  118.         return;
  119.     }
  120.  
  121.     switch(iStatus)
  122.     {
  123.         case ICS_CONN_TIMEOUT:
  124.                 ICS_Error_Id = ICS_ERR_TIMEOUT;
  125.                 Navigate("icserror\\icsdc.htm");
  126.                 break;
  127.         case ICS_CONN_PERMANENT:
  128.                 break;
  129.         case ICS_CONN_STOPPED:
  130.                 switch (oldState)
  131.                 {
  132.                     case ICS_CONN_PERMANENT:
  133.                          ICS_Error_Id = ICS_ERR_STOPPED;
  134.                          Navigate("icserror\\icsdc.htm");
  135.                          break;
  136.                     default:
  137.                          break;
  138.                 }
  139.                 break;
  140.         case ICS_CONN_HN_UNAVAILABLE:
  141.                 ICS_Error_Id = ICS_ERR_HN_UNAVAILABLE;
  142.                 Navigate("icserror\\icsdc.htm");
  143.                 break;
  144.         default:
  145.                 break;
  146.     }
  147. }
  148.  
  149.  
  150.  
  151.  
  152.  
  153. function IcsDcError_LoadMe()
  154. {
  155.     InitFrameRef();
  156.     InitNewButtons();
  157.     g.btnNext.onclick = IcsErrorNextBtnHandler;
  158.     g.btnSkip.onclick = IcsErrorSkipBtnHandler;
  159.  
  160.     switch (ICS_Error_Id)
  161.     {
  162.  
  163.     case ICS_ERR_HN_UNAVAILABLE:
  164.         g.ErrorPara1.innerHTML = L_ERR_HN_UNAVAILABLE_Text;
  165.         break;
  166.     case ICS_ERR_STOPPED:
  167.         g.ErrorPara1.innerHTML = L_ERRSTOPPED_Text;
  168.         break;
  169.     case ICS_ERR_PERM_DISCONNECTED:
  170.         g.ErrorPara1.innerHTML = L_ERR_PERM_DISCONNECTED_Text;
  171.         break;
  172.     case ICS_ERR_TIMEOUT:
  173.         g.ErrorPara1.innerHTML = L_ERRTIMEOUT_Text;
  174.         break;
  175.     case LAN_ERR_HW_UNAVAILABLE1:
  176.     case LAN_ERR_HW_UNAVAILABLE2:
  177.         g.btnBack.style.visibility = "visible";
  178.         g.BackBtnLocalText.style.visibility = "visible";
  179.         g.btnBack.onclick = IcsErrorBackBtnHandler;
  180.         if (ICS_Error_Id == LAN_ERR_HW_UNAVAILABLE1)
  181.         {
  182.             g.ErrorPara1.innerHTML = L_ERR_LAN_UNAVAILABLE1_Text;
  183.         }
  184.         else
  185.         {
  186.             g.ErrorPara1.innerHTML = L_ERR_LAN_UNAVAILABLE2_Text;
  187.             g.ErrorPara2.style.display = "inline";
  188.         }
  189.         break;
  190.     }
  191.     g.btnNext.focus();
  192. }
  193.  
  194. function IcsErrorBackBtnHandler()
  195. {
  196.     GoNavigate(g_CurrentCKPT);
  197. }
  198.  
  199. function IcsErrorNextBtnHandler()
  200. {
  201.     DisableAllButtons();
  202.     ResetConnectedToInternetEx();
  203.     switch (g_CurrentCKPT)
  204.     {
  205.     case CKPT_REGISTER1:
  206.     case CKPT_REGISTER3:
  207.         if (ICS_Error_Id == LAN_ERR_HW_UNAVAILABLE1)
  208.         {
  209.             LanActReg();
  210.         }
  211.         else if (ICS_Error_Id == LAN_ERR_HW_UNAVAILABLE2)
  212.         {
  213.             if (g.rb_conn_modem.checked)
  214.             {
  215.                 GoNavigate(CKPT_REGDIAL);
  216.             }
  217.             else
  218.             {
  219.                 LanActReg();
  220.             }
  221.         }
  222.         else
  223.         {
  224.             IcsConnect(ICS_CONN_TYPE_REG);
  225.         }
  226.         break;
  227.     case CKPT_ISPSIGNUP:
  228.         IcsConnect(ICS_CONN_TYPE_ISP);
  229.         break;
  230.     case CKPT_REFDIAL:
  231.         IcsConnect(ICS_CONN_TYPE_REF);
  232.         break;
  233.     case CKPT_MIGDIAL:
  234.         IcsConnect(ICS_CONN_TYPE_MIG);
  235.         break;
  236.     default:
  237.         break;
  238.     }
  239. }
  240.  
  241. function IcsErrorSkipBtnHandler()
  242. {
  243.     switch (g_CurrentCKPT)
  244.     {
  245.     case CKPT_REGISTER1:
  246.     case CKPT_REGISTER3:
  247.         
  248.         g_CurrentCKPT = CKPT_ACT_MSG;
  249.         break;
  250.     default:
  251.         break;
  252.     }
  253.     GoCancel();
  254. }
  255.  
  256. function LanActReg()
  257. {
  258.     if (g_Internet == INTERNET_UNKNOWN)
  259.     {
  260.         ConnectedToInternetEx(true, "LanActReg2();");
  261.         g.document.body.style.cursor = "wait";
  262.     }
  263.     else
  264.     {
  265.         LanActReg2();
  266.     }
  267. }
  268.  
  269. function LanActReg2()
  270. {
  271.     if (!ConnectedToInternetEx(false))
  272.     {
  273.         if (HasModem())
  274.         {
  275.             ICS_Error_Id = LAN_ERR_HW_UNAVAILABLE2;
  276.         }
  277.         else
  278.         {
  279.             ICS_Error_Id = LAN_ERR_HW_UNAVAILABLE1;
  280.         }
  281.         Navigate("icserror\\icsdc.htm");
  282.     }
  283.     else
  284.     {
  285.         CommonActReg();
  286.     }
  287. }
  288.  
  289. function IcsConnect(iConnectionType)
  290. {
  291.     
  292.     
  293.     
  294.     if (g_Internet == INTERNET_UNKNOWN)
  295.     {
  296.         ConnectedToInternetEx(true, "IcsConnect2("+iConnectionType+")");
  297.     }
  298.     else
  299.     {
  300.         IcsConnect2(iConnectionType);
  301.     }
  302. }
  303.  
  304. function IcsConnect2(iConnectionType)
  305. {
  306.     if (!ConnectedToInternetEx(false))
  307.     {
  308.          OnIcsConnectionStatus ( ICS_CONN_HN_UNAVAILABLE );
  309.          return;
  310.     }
  311.  
  312.     switch (iConnectionType)
  313.     {
  314.     case ICS_CONN_TYPE_REG:
  315.         CommonActReg();
  316.         break;
  317.     case ICS_CONN_TYPE_ISP:
  318.         
  319.         window.external.Connect(CONNECTED_ISP_SIGNUP, "msobe.isp");
  320.         break;
  321.     case ICS_CONN_TYPE_REF:
  322.         
  323.         window.external.Connect(CONNECTED_REFFERAL, "migrate.isp");
  324.         break;
  325.     case ICS_CONN_TYPE_MIG:
  326.         
  327.         
  328.         window.external.Connect(CONNECTED_ISP_MIGRATE, gselectedISPIndx);
  329.         break;
  330.     default:
  331.         break;
  332.     }
  333. }
  334.  
  335. function CommonActReg()
  336. {
  337.     
  338.     
  339.     window.external.Connect(CONNECTED_REGISTRATION, "reg.isp");
  340.     if (g_DoActivation)
  341.     {
  342.         window.external.AsyncActivate(g_PostToMS);
  343.     }
  344.     else 
  345.     {
  346.         if (g_PostToMS)
  347.         {
  348.             window.external.PostRegData(POST_TO_MS);
  349.             StatusObj.set_Status(MS_REGISTRATION, true);
  350.         }
  351.         ActivationComplete();
  352.     }
  353. }
  354.  
  355. function UseIcs()
  356. {
  357.  
  358.     fResult = ((CONNECTIONTYPE_LAN_ICS == GetPreferredConnection())
  359.                 && HasIcs()) ? true : false;
  360.     trace("UseIcs: " + fResult);
  361.     return fResult;
  362. }   
  363.  
  364. function HasIcs()
  365. {
  366.     fResult = (CONNECTIONTYPE_LAN_ICS & GetConnectionCapabilities()) ? true : false;
  367.     trace("HasIcs: " + fResult);
  368.     return fResult;
  369.  
  370. function UseBroadband()
  371. {
  372.     fResult = (CONNECTIONTYPE_LAN_BROADBAND == GetPreferredConnection() && HasBroadband()) ? true : false;
  373.     trace("UseBroadband: " + fResult);
  374.     return fResult;
  375. }   
  376.  
  377. function HasBroadband()
  378. {
  379.     fResult = (CONNECTIONTYPE_LAN_BROADBAND & GetConnectionCapabilities()) ? true : false;
  380.     trace("HasBroadband: " + fResult);
  381.     return fResult;
  382.  
  383. function HasIndeterminateLan()
  384. {
  385.     fResult = (CONNECTIONTYPE_LAN_INDETERMINATE & GetConnectionCapabilities()) ? true : false;
  386.     trace("HasIndeterminateLan: " + fResult);
  387.     return fResult;
  388.  
  389.  
  390.  
  391. function UseModem()
  392. {
  393.     fResult = (CONNECTIONTYPE_MODEM == GetPreferredConnection() && HasModem()) ? true : false;
  394.     trace("UseModem: " + fResult);
  395.     return fResult;
  396. }   
  397.  
  398.  
  399. function HasModem()
  400. {
  401.     
  402.     
  403.     
  404.     fResult = (CONNECTIONTYPE_MODEM & GetConnectionCapabilities()) ? true : false;
  405.     trace("HasModem: " + fResult);
  406.     return fResult;
  407.  
  408.  
  409. function HasAnalogModem()
  410. {
  411.     GetConnectionCapabilities();
  412.     fResult = (g_ModemTypes == ERR_COMM_NO_ERROR);
  413.     trace("HasAnalogModem: " + fResult);
  414.     return fResult;
  415.  
  416. function UseAnalogModem()
  417. {
  418.     fResult = (CONNECTIONTYPE_MODEM == GetPreferredConnection() && HasAnalogModem()) ? true : false;
  419.     trace("UseAnalogModem: " + fResult);
  420.     return fResult;
  421.  
  422. function UseNetwork()
  423. {
  424.     return (UseIcs() || UseBroadband() || HasIndeterminateLan());
  425.  
  426. function HasNetwork()
  427. {
  428.     var fResult = (GetConnectionCapabilities() & CONNECTIONTYPE_LAN) ? true : false;
  429.     trace("HasNetwork: " + fResult);
  430.     return fResult;
  431.  
  432. function HasConnection()
  433. {
  434.     fResult = (HasNetwork() || HasModem());
  435.     trace("HasConnection: " + fResult);
  436.     return fResult;
  437.  
  438. function SetPreferredConnection(ctPreferred)
  439. {
  440.     
  441.     
  442.     
  443.     if (window.external.SetPreferredConnection(ctPreferred))
  444.     {
  445.         g_PreferredConnection = ctPreferred;
  446.     }
  447.     else if ((ctPreferred == CONNECTIONTYPE_MODEM) && HasModem())
  448.     {
  449.         g_PreferredConnection = CONNECTIONTYPE_MODEM;
  450.     }
  451.  
  452.     
  453.     ApiObj.set_RegValue(HKEY_LOCAL_MACHINE, OOBE_MAIN_REG_KEY + "\\TEMP", PREFCONN_REG_VALUE, g_PreferredConnection);
  454.  
  455. }   
  456.  
  457. function GetPreferredConnection()
  458. {
  459.     if (CONNECTIONTYPE_INVALID == g_PreferredConnection
  460.         )
  461.     {
  462.         trace("Calling window.external.GetPreferredConnection");
  463.         g_PreferredConnection = window.external.GetPreferredConnection();
  464.  
  465.         
  466.         
  467.         
  468.         if (CONNECTIONTYPE_NONE == g_PreferredConnection
  469.             && HasModem() )
  470.         {
  471.             g_PreferredConnection = CONNECTIONTYPE_MODEM;
  472.         }
  473.     }
  474.  
  475.     trace("GetPreferredConnection: " + g_PreferredConnection);
  476.     return g_PreferredConnection;
  477.  
  478.  
  479. function GetConnectionCapabilities()
  480. {
  481.     
  482.     if (CONNECTIONTYPE_INVALID == g_ConnectionCapabilities)
  483.     {
  484.         trace("Calling window.external.GetConnectionCapabilities");
  485.         g_ConnectionCapabilities = window.external.GetConnectionCapabilities();
  486.  
  487.         
  488.         
  489.         
  490.         g_ModemTypes = window.external.CheckDialReady();
  491.         if (ERR_COMM_NO_ERROR == g_ModemTypes ||
  492.             ERR_COMM_ISDN == g_ModemTypes ||
  493.             ERR_COMM_PHONE_AND_ISDN == g_ModemTypes)
  494.         {
  495.             g_ConnectionCapabilities |= CONNECTIONTYPE_MODEM;
  496.         }        
  497.     }
  498.  
  499.     trace("GetConnectionCapabilities: " + g_ConnectionCapabilities);
  500.     return g_ConnectionCapabilities;
  501.  
  502.  
  503. function InternetCapabilityExists()
  504. {
  505.     var     fExists = false;
  506.  
  507.     
  508.     
  509.     if (HasNetwork())
  510.     {
  511.         fExists = true;
  512.     }
  513.  
  514.     if (!fExists && HasModem())
  515.     {
  516.         fExists = true;
  517.     }
  518.     trace("InternetCapabilityExists: " + fExists);
  519.     return fExists;
  520.  
  521.  
  522. var ICS_MINIMUM_CALLBACK_SLEEP_TIME = 6000;
  523. var ICS_MINIMUM_TIMEOUT = 40;
  524.  
  525. function AsyncCallback(callback)
  526. {
  527.     this._callback = callback;
  528.     this._startTime = (new Date()).getTime();
  529. }
  530.  
  531. function InvokeCallback()
  532. {
  533.     if (this._callback != null)
  534.     {
  535.         var timeRemained = ICS_MINIMUM_CALLBACK_SLEEP_TIME -
  536.             ((new Date()).getTime() - this._startTime);
  537.  
  538.         
  539.         
  540.         
  541.         
  542.         if (timeRemained < ICS_MINIMUM_TIMEOUT)
  543.         {
  544.             
  545.             
  546.             setTimeout(this._callback, ICS_MINIMUM_TIMEOUT);
  547.         }
  548.         else
  549.         {
  550.             setTimeout(this._callback, timeRemained);
  551.         }
  552.     }
  553. }
  554.  
  555. AsyncCallback.prototype.InvokeCallback = InvokeCallback;
  556.  
  557. var g_ConnectedToInternetCallback = null;
  558.  
  559.  
  560.  
  561.  
  562.  
  563.  
  564.  
  565.  
  566. function ConnectedToInternetEx(bRefresh, callback)
  567. {
  568.     var retval = false;
  569.  
  570.     if (UseModem() && (GetConnectionCapabilities() == CONNECTIONTYPE_MODEM))
  571.     {
  572.         
  573.         
  574.         if (callback == null)
  575.         {
  576.             retval = window.external.ConnectedToInternet();
  577.         }
  578.         else
  579.         {
  580.             trace("ConnectedToInternetEx("+bRefresh+", "+callback+")");
  581.             setTimeout(callback, ICS_MINIMUM_CALLBACK_SLEEP_TIME);
  582.         }
  583.     }
  584.     else if (bRefresh && g_Internet == INTERNET_UNKNOWN)
  585.     {
  586.         
  587.         if (callback == null)
  588.         {
  589.             retval = window.external.ConnectedToInternetEx()
  590.             g_Internet = (retval) ? INTERNET_YES : INTERNET_NO;
  591.         }
  592.         else
  593.         {
  594.             g_ConnectedToInternetCallback = new AsyncCallback(callback);
  595.             setTimeout("window.external.AsyncConnectedToInternetEx()",
  596.                 ICS_MINIMUM_TIMEOUT);
  597.             
  598.         }
  599.     }
  600.     else
  601.     {
  602.         
  603.         if (callback == null)
  604.         {
  605.             retval = (g_Internet == INTERNET_YES);
  606.         }
  607.         else
  608.         {
  609.             setTimeout(callback, ICS_MINIMUM_CALLBACK_SLEEP_TIME);
  610.         }
  611.     }
  612.  
  613.     return retval;
  614. }
  615.  
  616. function ResetConnectedToInternetEx()
  617. {
  618.     g_Internet = INTERNET_UNKNOWN;
  619. }
  620.  
  621. <!--REQUIRED FUNCTION NAME-->
  622. function ReturnConnectedToInternetEx(bConnected)
  623. {
  624.     g_Internet = (bConnected) ? INTERNET_YES : INTERNET_NO;
  625.     if (g_ConnectedToInternetCallback != null)
  626.     {
  627.         g_ConnectedToInternetCallback.InvokeCallback();
  628.         g_ConnectedToInternetCallback = null;
  629.     }
  630. }
  631.  
  632. function CanConfigLan()
  633. {
  634.     if (HasBroadband() || HasIndeterminateLan())
  635.     {
  636.         return g_CanConfigLan;
  637.     }
  638.     
  639.     return CONFIG_LAN_NO;
  640.         
  641. }
  642.  
  643. function GetPublicLanCount()
  644. {
  645.     return g_PublicLanCount;
  646. }
  647.  
  648. var g_CheckIfConfigInternetCallback = null;
  649.  
  650.  
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657.  
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664.  
  665.  
  666. function CheckIfConfigLan(callback)
  667. {
  668.     g_CheckIfConfigInternetCallback = new AsyncCallback(callback);
  669.     setTimeout("window.external.AsyncGetPublicLanCount()", ICS_MINIMUM_TIMEOUT);
  670.     
  671. }
  672.  
  673. <!--REQUIRED FUNCTION NAME-->
  674. function ReturnGetPublicLanCount(bConnected, cPublicLan)
  675. {
  676.     
  677.     
  678.     g_Internet = (bConnected) ? INTERNET_YES : INTERNET_NO;
  679.  
  680.     if (cPublicLan)
  681.     {
  682.         g_PublicLanCount = cPublicLan;
  683.     }
  684.     else
  685.     {
  686.         g_PublicLanCount = 0;
  687.     }
  688.  
  689.     
  690.     
  691.  
  692.     if (g_Internet == INTERNET_YES)
  693.     {
  694.         if (g_PublicLanCount == 0)
  695.         {
  696.             if (HasBroadband())
  697.             {
  698.                 g_PublicLanCount = 1;
  699.             }
  700.         }
  701.     }
  702.  
  703.     if (g_PublicLanCount >= 1 || HasBroadband())
  704.     {
  705.         g_CanConfigLan = CONFIG_LAN_YES;
  706.     }
  707.     else
  708.     {
  709.         g_CanConfigLan = CONFIG_LAN_NO;
  710.     }
  711.     
  712.     if (g_CheckIfConfigInternetCallback != null)
  713.     {
  714.         g_CheckIfConfigInternetCallback.InvokeCallback();
  715.         g_CheckIfConfigInternetCallback = null;
  716.     }
  717. }
  718.